﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using RoadTeam.Model;
using RoadTeam.Enums;
using RoadTeam.SysInterface;

namespace RoadTeam.BsSystem.CS.HomeInspection
{
    public class TbCsRoomObjectRela_Sys : ICsRoomObjectRela
    {





        public DataTable GetRoomObjectRelaData()
        {
            SqlWhere where = new SqlWhere();
            where.Info = new TbCsRoomObjectRela() { };
            where.StrSqlWhere = @" App_Identifier Is  NULL  ";
            where.SelectColumn = @" RoomTypeID,ValidateObjectID,App_Identifier,RelaID ";
            return TbCsRoomObjectRela.Select(where, GlobalConfig.RtConnectionString);
        }


        public bool UpdateRoomObjectRelaData(DataTable dt)
        {
            return TbCsRoomObjectRela.Update(dt, GlobalConfig.RtConnectionString);
        }

    }
}
